package org.smart4j.framework.bean;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * 返回视图对象
 *
 * @author: Mr.Zhou
 * @create: 2018-10-24 15:49
 **/
@Data
public class View {

    private String path;

    private Map<String,Object> model;

    public View(String path) {
        this.path = path;
        model=new HashMap<String, Object>();
    }

    public View addModel(String key,Object value){
        model.put(key,value);
        return this;
    }
}
